package Qm;

import java.time.LocalDateTime;
import java.util.Scanner;

public class WhileTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("等待用输入");

        while(true) {
            String input = scanner.nextLine();
            if (input.equals("n")){
                break;
            }
            else{
                LocalDateTime now =LocalDateTime.now();
                System.out.println("循环操作中~~~~按n退出");

            }
        }
    }
}
